package com.basic.business.model.dto;

import com.basic.business.common.config.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


/**
 * (SysUser)实体类
 *
 * @author huage
 * @since 2021-07-21 00:05:42
 */
@ApiModel("SysUserDto")
@Data
public class SysUserDto implements Serializable {

    private static final long serialVersionUID = -6722395452295907771L;
    @ApiModelProperty(value = "$column.comment")
    @NotNull(groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    @Min(value = 1, groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    private Integer id;

    private Integer userId;

    private Integer loginId;

    private String name;

    private String password;


    public SysUserDto() {
    }

    private List<SysRoleDto> roles;
}
